package com.example.demo.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)//运行阶段生效
@Target({ElementType.TYPE,ElementType.METHOD})//作用在类和方法
public @interface MyDefined {
    String value();
    double aaa() default 100;
    String[] bbb();
}
